﻿using LiaoChengFei.Core;
using LiaoChengFei.DoMain;
using System.Collections.Generic;
using System.Linq;

namespace LiaoChengFei.Services
{
    public class OrdersService : IOrdersService
    {
        private readonly IRepository<Orders> _ordersRepository;

        public OrdersService(IRepository<Orders> ordersRepository)
        {
            _ordersRepository = ordersRepository;
        }

        public List<Orders> GetOrders()
        {
            return _ordersRepository.Table.ToList();
        }
    }
}
